package cloud.maque.admin.impl;

import cloud.maque.admin.domain.entity.MqXzqAreaRelation;
import cloud.maque.admin.mapper.MqXzqAreaRelationMapper;
import cloud.maque.admin.service.MqXzqAreaRelationService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhuyf
 * @date 2023/3/17 20:25
 */
@Service
public class MqXzqAreaRelationServiceImpl extends ServiceImpl<MqXzqAreaRelationMapper, MqXzqAreaRelation> implements MqXzqAreaRelationService {

    @Override
    public List<MqXzqAreaRelation> GetList(String areaId) {
        QueryWrapper<MqXzqAreaRelation> queryWrapper = new QueryWrapper();
        queryWrapper.lambda().eq(MqXzqAreaRelation::getXzqAreaId, areaId);
        queryWrapper.lambda().orderByAsc(MqXzqAreaRelation::getRelaOrder);
        return this.list(queryWrapper);
    }
}
